{template '_header'}
<style>
    .style i{
        vertical-align: middle;
    }
</style>
<!--chemeng-->
<div class="page-header">当前位置：<span class="text-primary">级差奖明细</span></div>
<div class="page-content">
    <form action="./index.php" method="get" class="form-horizontal table-search" role="form" id="form1">
        <input type="hidden" name="c" value="site" />
        <input type="hidden" name="a" value="entry" />
        <input type="hidden" name="m" value="ewei_shopv2" />
        <input type="hidden" name="do" value="web" />
        <input type="hidden" name="r" value="commission.unlimited.log" />
        <div class="page-toolbar">
            <span class="pull-left">
                    {php echo tpl_daterange('time', array('sm'=>true,'placeholder'=>'奖励时间'),true);}
                </span>
            <div class="input-group">
                <span class="input-group-select">
                    <select name="searchfield"  class="form-control"   style="width:100px;"  >
                        <option value="member" selected>会员信息</option>
                    </select>
                </span>
                <input type="text" class="form-control"  name="keyword" value="{$_GPC['keyword']}" placeholder="请输入会员信息或者订单号" />
                <span class="input-group-btn">
                    <button class="btn  btn-primary" type="submit"> 搜索</button>
                </span>
            </div>
        </div>
    </form>
    {if empty($list)}
    <div class="panel panel-default">
        <div class="panel-body empty-data">未查询到相关数据</div>
    </div>
    {else}
    <div class="row">
        <div class="col-md-12">
            <table class="table">
                <thead>
                <tr>
                    <th> id</th>
                    <th>粉丝</th>
                    <th>会员信息</th>
                    <th>奖励金额</th>
                    <th>奖励时间</th>
                    <th>奖励状态</th>
                    <th>订单号</th>
                    <th>订单状态</th>
                </tr>
                </thead>
                <tbody>
                {loop $list $row}
                <tr>
                    <td>{$row['id']}</td>
                    <td data-toggle='tooltip' title='{$row['nickname']}'>
                    {ifp 'member.list.detail'}
                    <a  href="{php echo webUrl('member/list/detail',array('id' => $row['mid']));}" target='_blank'>
                        <img class="radius50" src='{php echo tomedia($row['avatar'])}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' / onerror="this.src='../addons/ewei_shopv2/static/images/noface.png'"> {$row['nickname']}
                    </a>
                    {else}
                    <img src='{php echo tomedia($row['avatar'])}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['nickname']}
                    {/if}

                    </td>
                    <td>{if !empty($row['realname'])}{$row['realname']}{else}匿名{/if}<br/>{if !empty($row['mobile'])}{$row['mobile']}{else}暂无{/if}</td>
                    <td>{$row['money']}</td>
                    
                    <td>{php echo date('Y-m-d',$row['createtime'])}<br/>{php echo date('H:i',$row['createtime'])}</td>
                    <td>{$row['statusstr']}</td>
                    <td>{$row['ordersn']}</td>
                    <td>{$row['ostatusstr']}</td>
                </tr>
                {/loop}
                </tbody>
                <tfoot>
                <tr>
                   
                    <td colspan="8" style="text-align: right">
                        {$pager}
                    </td>
                </tr>
                </tfoot>
            </table>
        </div>
    </div>
    {/if}

</div>
{template '_footer'}
